# Maintainer: Miles Alan <m@milesalan.com>
# Contributor: Miles Alan <m@milesalan.com>
pkgname=oil
pkgver=0.11.0
pkgrel=0
pkgdesc="Oil is a new POSIX & bash compatible shell"
url="https://www.oilshell.org"
arch="all"
license="Apache-2.0"
# !check as source has tests, but tagged releases don't
# !strip as oil binary shows error message otherwise, see: https://github.com/oilshell/oil/issues/47
options="!strip !check"
makedepends="readline-dev bash"
subpackages="$pkgname-doc"
source="https://www.oilshell.org/download/oil-$pkgver.tar.gz"

build() {
	./configure --prefix /usr --with-readline # not a gnu-autoconf script
	make
}

package() {
	make install DESTDIR="$pkgdir"
	install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}

sha512sums="
646236076f4f6e97f3b90ed5bb5c991a00f8eeaf660bbaecdfd4e7042b776170b8791f149ce168faec37e44983ed5c0a03f0f7c4b80a4bb019e12f586461bad6  oil-0.11.0.tar.gz
"
